using System.Collections.Generic;
using AvaloniaApplication1.Models;

namespace AvaloniaApplication1;

public class AppSettings
{
    public List<DeviceConfiguration> Devices { get; set; }
}

public class DeviceConfiguration
{
    public string DeviceName { get; set; }
    public bool IsConnected { get; set; }
    public ConnectionType ConnectionType { get; set; }

    public Dictionary<string, object> ModbusParams { get; set; }
    public DeviceConfiguration(string deviceName,bool isConnected, ConnectionType connectionType, Dictionary<string, object> modbusParams)
    {
        DeviceName = deviceName;
        IsConnected = isConnected;
        ConnectionType = connectionType;
        ModbusParams = modbusParams;
    }
}